package yang.yu.sunny.domain.sales;

import org.dayatang.domain.InstanceFactory;
import yang.yu.sunny.domain.AbstractEntity;
import yang.yu.sunny.infra.persistence.sales.OrderMapper;

import java.util.Date;
import java.util.List;

/**
 * 订单
 * Created by yyang on 16/3/15.
 */
public class Order extends AbstractEntity {

    private Long customerId;

    private Date created = new Date();

    private double totalPrice;

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }
}
